package com.Rsonly.spring.cloud.weather.service;

import com.Rsonly.spring.cloud.weather.vo.WeatherResponse;

/**
 * @author 34234
 */
public interface WeatherDataService {

    /**
     * 根据城市id查询天气数据
     *
     * @param cityid
     * @return
     */
    WeatherResponse getDataByCityId(String cityid);

    /**
     * 根据城市名称查询天气数据
     *
     * @param cityName
     * @return
     */
    WeatherResponse getDataByCityName(String cityName);

    /**
     * 根据城市id同步天气
     *
     * @param cityId
     */
    void syncDataByCityId(String cityId);
}
